package com.calabar.phm.etl.driver.spark;

/**
 * @Author zmc <mingcheng.zhang@cdcalabar.com>
 * @Date 17-6-28 上午9:38
 * @Version v1.0
 * @Des 驱动器运行状态
 */
public enum DriverStateEnum {

    UNDEFINED(0, "默认值（无状态）"),
    ACCEPTED(1, "接收外部参数"),
    SUBMITTED(2, "解析参数提交任务"),
    FINISHED(3, "驱动运行结束"),
    FAILED(4, "驱动运行失败");

    private int _code;
    private String _description;

    private DriverStateEnum(int code, String description) {
        this._code = code;
        this._description = description;
    }

    public int get_code() {
        return _code;
    }

    public String get_description() {
        return _description;
    }
}
